package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.exception.SensitiveWordException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("hello")
    public BaseRespVo hello(String name) throws SensitiveWordException {
        if ("songge".equals(name)) {
            throw new SensitiveWordException();
        }
        int i = 1 / 0;
        return BaseRespVo.ok();
    }
}
